<style>
#listingDelatnosti form{
	max-width:320px;
}
#listingDelatnosti label{
	display:block;
	float:left;
	clear:both;
}
#listingDelatnosti select{
	width:270px;
}
#listingDelatnosti input[type=submit]{
	float:right;
	clear:both;
}
#listingDelatnosti input#listingSettings{
	width:20px;
	height:24px;
	float:right;
	background-image:url(gui/icons/settings.gif);
	background-repeat:no-repeat;
	background-position:center center;
}
#listingDelatnosti #listingContent{
	clear:both;
	margin:2px 0px;
}
#listingDelatnosti #listingContent table{
	border-left:1px solid #aaa;
	clear:both;
}
#listingDelatnosti #listingContent table tr.head td{
	cursor:default;
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#listingDelatnosti #listingContent table td{
	padding:2px 4px;
	border-bottom:1px solid #aaa;
	border-right:1px solid #aaa;
}
#listingDelatnosti #listingContent table tr{
	cursor:pointer;
}
#listingDelatnosti #listingContent table tr:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#listingDelatnosti .txt{
	float:left;
}
</style>
<div id="listingDelatnosti">
<form method="post" action="javascript:void(0)" onsubmit="genListingDelatnosti(this)" class="area1">
	<label for="delatnost">Delatnost:</label>
	<select name="delatnost" id="delatnost">
		{{%loop start del_id}}
		<option value="{{$del_id}}" {{$selected_del}}>{{$del_name}}</option>
		{{%loop end}}
	</select>
	<label for="kampanja">Kampanja:</label>
	<select name="kampanja" id="kampanja">
		{{%loop start kampanja_id}}
		<option value="{{$kampanja_id}}" {{$selected_kampanja}}>{{$kampanja_name}}</option>
		{{%loop end}}
	</select>
	<input title="podešavanja za odabranu kampanju..." type="button" id="listingSettings" onclick="showListingSettings('',document.getElementById('kampanja').value);" value="" />
	
	<input type="submit" value="ok" />
	<input type="button" onclick="LoadRSDoc('komitenti.php?a=listing&mod=ukupno&kamid='+document.getElementById('kampanja').value,'ypAjaxForm')" value="ukupno za sve delatnosti" />
</form><span style="float:left; font-size:11px; color:#aaa; margin:135px 0px 0px 5px;">{{$info}}</span>
<div class="area" id="listingContent">
{{$comment_start}}
<div style="float:left">
<strong>Srodne delatnosti:</strong>
{{$comment_start_no_sd}}
<ul>
	{{%loop start sd_id}}
	<li delid="{{$sd_id}}">{{$sd_name}}</li>
	{{%loop end}}
</ul>
{{$comment_end_no_sd}}
</div>
<div style="float:left">
<strong>Linkovi:</strong>
{{$comment_start_no_link}}
<ul>
	{{%loop start l_adresa}}
	<li style="float:left; clear:both;"><strong>{{$l_name}}</strong><br />
		<span style="float:left; display:block; width:200px;">{{$l_adresa}}</span>
		<span style="float:left; margin-left:5px;">{{$l_tel}}</span></li>
	{{%loop end}}
</ul>
{{$comment_end_no_link}}
</div><br clear="all" />
<input type="hidden" name="delatnost_id" id="delatnost_id" value="{{$delatnost_id}}" />
<input type="hidden" name="srodne_delatnosti" id="srodne_delatnosti" value="{{$srodne_delatnosti}}" />
<input type="hidden" name="links_names" id="links_names" value="{{$links_names}}" />
<input type="hidden" name="links_adrese" id="links_adrese" value="{{$links_adrese}}" />
<input type="hidden" name="links_tels" id="links_tels" value="{{$links_tels}}" />
<input type="hidden" name="delimiter" id="listing_delimiter" value="{{$delimiter}}" />
<input type="button" class="txt" value="izvezi u .txt" onclick="exportListingTXT(this.nextSibling.nextSibling,'{{$the_delatnost}}')" />
<table id="listingDelatnostiTable">
	<tr class="head">
		<td>šifra</td>
		<td>naziv komitenta</td>
		<td>mesto</td>
		<td>adresa</td>
		<td>telefon</td>
	</tr>
	{{%loop start komitent_id}}
	<tr onclick="blankTarget('LoadRSDoc(\'komitenti.php?a=displayOne&id=\'+{{$komitent_id}},\'setContent\')')" title="podaci komitenta...">
		<td class="link">{{$komitent_id}}</td>
		<td>{{$ime}}</td>
		<td>{{$mesto}}</td>
		<td>{{$adresa}}</td>
		<td>{{$telefon}}</td>
	</tr>
	{{%loop end}}
</table>
{{$comment_end}}
</div>
</div>